<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/1/1
 * Time: 18:20
 */


//chunk_split — 将字符串分割成小块
//string chunk_split ( string $body [, int $chunklen = 76 [, string $end = "\r\n" ]] )


$n = chunk_split("this is a text file",3, "\r\n");
echo $n;

echo chunk_split("this is a text file",3, "\t");

echo PHP_EOL;

$new_string = base64_encode(uniqid());
echo $new_string;
echo PHP_EOL;
echo chunk_split($new_string);


